package com.vdm.service.impl;

import com.vdm.dao.AmountInfoMapper;
import com.vdm.model.AmountInfo;
import com.vdm.service.AmountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AmountServiceImpl implements AmountService {

    @Autowired
    private AmountInfoMapper amountInfoMapper;

    @Override
    public AmountInfo selectByDispatchNum(String dispatchNum) {
        return amountInfoMapper.selectByDispatchNum(dispatchNum);
    }

    @Override
    public int insertSelective(AmountInfo record) {
        return amountInfoMapper.insertSelective(record);
    }

    @Override
    public int updateByPrimaryKeySelective(AmountInfo record) {
        return amountInfoMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public List<AmountInfo> amountInfoList() {
        return amountInfoMapper.amountInfoList();
    }

    @Override
    public int getAmountInfoCount() {
        return amountInfoMapper.getAmountInfoCount();
    }

}
